#! /usr/bin/env python3
# -*-coding: utf-8-*-

import sys
import cv2
import numpy as np
from cnn import getChipFeatureData
from common.common import dislodgeRedu
from common.common import denoising
from common.common import checkManStatus

# n = int(sys.argv[1])
# chipz,src = getChipFeatureData('datasets/features/feature_test.npz')
# chip  = list(chipz)[n]
# imgpath = chip[0]
# img = cv2.imread(imgpath)
# img = denoising(img)
# chip_point = chip[2]
# chip_box = chip[1]


# status,msg = checkManStatus(chip_points[2],chip_boxes)
# print(status,msg)

# img = dislodgeBackground(img,chip_box)

img = cv2.imread('common/one.png')
img = dislodgeRedu(img)
# img = denoising(img)

# print(chip[1])
# cv2.rectangle(img,(rect[0],rect[1]),(rect[2],rect[3]),(0,255,0),2)
cv2.imshow("Image",img)
cv2.waitKey(0)
cv2.destroyAllWindows()



# dislodgeBackground(img)

